<template>
  <div class="role">
    <header>
      <span>
        <span>角色名称</span>
        <el-input v-model="input" placeholder="请输入关键字" style="width:200px"></el-input>
      </span>
      <span>
        <span>角色状态</span>
        <el-select v-model="value" placeholder="请选择">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value">
          </el-option>
        </el-select>
      </span>
      <p><el-button type="primary" @click="orderUnti(scope.row.orderid)" style="float:right;margin-right:12px">搜索</el-button></p>
      <p><el-link type="primary">添加角色</el-link></p>
    </header>
    <el-table
      :data="tableData"
      style="width: 100%">
      <el-table-column prop="date" label="角色ID" ></el-table-column>
      <el-table-column prop="date" label="角色名称" ></el-table-column>
      <el-table-column prop="date" label="状态" ></el-table-column>
      <el-table-column prop="date" label="菜单权限" >
        <template slot-scope="scope">{{scope.row.length}}</template>
        <el-button type="text" @click="orderUnti(scope.row.orderid)">查看</el-button>
      </el-table-column>
      <el-table-column prop="date" label="创建时间" >
        <template slot-scope="scope">{{$getDate(scope.row.orderTime)}}</template>
      </el-table-column>
      <el-table-column prop="date" label="操作" >
        <el-button type="text" @click="orderUnti(scope.row.orderid)">编辑</el-button>
        <el-button type="text" @click="orderUnti(scope.row.orderid)">冻结</el-button>
      </el-table-column>
    </el-table>
  </div>
</template>
<script>
export default {
  data(){
    return {
    input:'',
    tableData:[{
      data:'132'
    }],
    options:[],//角色请求列表
    }
  }
}
</script>

<style scoped >
header{
  padding: 8px 0px;
}
header>span>span{
  margin: 0 12px;
}
</style>
